import myaxios from "../MyAxios"
// 引入路径前缀
import BASEURL from '../BaseUrl'
const {BMDURL} =BASEURL
const actorApi={
    queryAll(){
        let params={page:1,pagesize:20}
        return  myaxios.get(BMDURL+"/movie-actors",params)
    },
    add(params){
        return myaxios.post(BMDURL+'/movie-actor/add',params)
    },
    queryByNameLike(params){
        return myaxios.post(BMDURL+'/movie-actors/name',params)
    },
    /**
     * 
     * @param {是对象类型} params {id:演员 id} 
     */
    delete(params){
        return myaxios.post(BMDURL+'/movie-actor/del',params)
    }
}


export default actorApi